<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .active {
        background-color: aqua;
      }
    </style>
  </head>
  <body>
    <div id="time">2019-9-9</div>
    <ul>
      <li>我是第一个</li>
      <li>我是第二个</li>
      <li>我是第三个</li>
    </ul>
    <div class="box">盒子一</div>
    <div class="box">盒子二</div>
    <script>
      let div = document.getElementById("time");
      let lis = document.getElementsByTagName("li");
      let box = document.getElementsByClassName("box");
      let li = document.querySelectorAll(" ul li");
      let boxs = document.querySelector("box");
 
    </script>
  </body>
</html>
